<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    {css href="__PUBLIC__/css/login.css,__PUBLIC__/css/bootstrap.min.css"}
    {js href="__PUBLIC__/js/jquery.min.js,__COMMON__/js/layer.js,__PUBLIC__/js/common.js,__COMMON__/js/common.js" /}
</head>
<body style="background-color: #0d86c4">
<div class="page-container">
    <div class="main_box">
        <div class="login_box">
            <div class="login_logo">
                <img src="__PUBLIC__/images/logo.png"/>
            </div>
            <div class="login_form">
                <form action="" id="login_form" method="post">
                    <div class="form-group">
                        <label for="username" class="t">用户名：</label>
                        <input id="username" value="" placeholder="用户名" name="username" type="text"
                               class="form-control x319 in"
                               autocomplete="off">
                    </div>
                    <div class="form-group">
                        <label for="password" class="t">密　码：</label>
                        <input id="password" value="" name="password" type="password"
                               class="password form-control x319 in">
                    </div>
                    <div class="form-group">
                        <label for="j_captcha" class="t">验证码：</label>
                        <input id="j_captcha" name="captcha" type="text" class="form-control x164 in">
                        <img class="captcha" src="{:captcha_src()}" style="width: 148px;">
                    </div>
                    <div class="form-group space">
                        <label class="t"></label>　　　
                        <button type="button" id="login-submit"
                                class="btn btn-primary btn-lg">&nbsp;登&nbsp;录&nbsp
                        </button>
                        <input type="reset" value="&nbsp;重&nbsp;置&nbsp;" class="btn btn-default btn-lg">
                    </div>
                </form>
            </div>
        </div>
        <div class="bottom">Copyright &copy; 2020 - 2023</div>
    </div>
</div>
</body>
<script>
    var login = "{:url('admin/login/login')}";
    jQuery(function ($) {

        $(".captcha").click(function () {
            $("input[name='captcha']").val('').focus();
            $(this).attr('src', '{:captcha_src()}');
        });

        document.onkeydown = function (e) {
            if ($(".bac").length == 0) {
                if (!e) e = window.event;
                if ((e.keyCode || e.which) == 13) {
                    $("#at-mask").remove();
                    var obtnLogin = document.getElementById("login-submit")
                    obtnLogin.focus();
                }
            }
        }
    });

</script>
</html>
